import matplotlib
matplotlib.use('Agg')
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import warnings
warnings.filterwarnings("ignore")
import matplotlib as mpl
def student(file_name):
    # ********* Begin *********#
    a=pd.read_csv(file_name).dropna()
    a=a["births"].groupby(a["year"]).sum()
    plt.figure(figsize=(10, 10))
    plt.plot(a)
    plt.annotate("max",(np.argmax(a),a.max()),(np.argmax(a)-5,a.max()-5),arrowprops=dict(facecolor='black', shrink=0.05))
    plt.annotate("min",(np.argmin(a),a.min()),(np.argmin(a)-5,a.min()-5),arrowprops=dict(facecolor='black', shrink=0.05))
    plt.savefig("Task2/img2/T5.png")
    plt.show()
    # ********* End *********#
